package com.lyn.tencent_health_code.entity;

import com.alibaba.fastjson.JSON;

/**
 * @author almost
 */
public class Rsp {
    private Card card;
    private int color;
    private String ext;
    private String qrCodeImg;
    private String qrCodeText;
    private int vaccineStatus;

//<editor-fold defaultstate="collapsed" desc="delombok">
//</editor-fold>
    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

    //<editor-fold defaultstate="collapsed" desc="delombok">
    @SuppressWarnings("all")
    public Rsp() {
    }

    @SuppressWarnings("all")
    public Card getCard() {
        return this.card;
    }

    @SuppressWarnings("all")
    public int getColor() {
        return this.color;
    }

    @SuppressWarnings("all")
    public String getExt() {
        return this.ext;
    }

    @SuppressWarnings("all")
    public String getQrCodeImg() {
        return this.qrCodeImg;
    }

    @SuppressWarnings("all")
    public String getQrCodeText() {
        return this.qrCodeText;
    }

    @SuppressWarnings("all")
    public int getVaccineStatus() {
        return this.vaccineStatus;
    }

    @SuppressWarnings("all")
    public void setCard(final Card card) {
        this.card = card;
    }

    @SuppressWarnings("all")
    public void setColor(final int color) {
        this.color = color;
    }

    @SuppressWarnings("all")
    public void setExt(final String ext) {
        this.ext = ext;
    }

    @SuppressWarnings("all")
    public void setQrCodeImg(final String qrCodeImg) {
        this.qrCodeImg = qrCodeImg;
    }

    @SuppressWarnings("all")
    public void setQrCodeText(final String qrCodeText) {
        this.qrCodeText = qrCodeText;
    }

    @SuppressWarnings("all")
    public void setVaccineStatus(final int vaccineStatus) {
        this.vaccineStatus = vaccineStatus;
    }

    @Override
    @SuppressWarnings("all")
    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof Rsp)) return false;
        final Rsp other = (Rsp) o;
        if (!other.canEqual((Object) this)) return false;
        if (this.getColor() != other.getColor()) return false;
        if (this.getVaccineStatus() != other.getVaccineStatus()) return false;
        final Object this$card = this.getCard();
        final Object other$card = other.getCard();
        if (this$card == null ? other$card != null : !this$card.equals(other$card)) return false;
        final Object this$ext = this.getExt();
        final Object other$ext = other.getExt();
        if (this$ext == null ? other$ext != null : !this$ext.equals(other$ext)) return false;
        final Object this$qrCodeImg = this.getQrCodeImg();
        final Object other$qrCodeImg = other.getQrCodeImg();
        if (this$qrCodeImg == null ? other$qrCodeImg != null : !this$qrCodeImg.equals(other$qrCodeImg)) return false;
        final Object this$qrCodeText = this.getQrCodeText();
        final Object other$qrCodeText = other.getQrCodeText();
        if (this$qrCodeText == null ? other$qrCodeText != null : !this$qrCodeText.equals(other$qrCodeText)) return false;
        return true;
    }

    @SuppressWarnings("all")
    protected boolean canEqual(final Object other) {
        return other instanceof Rsp;
    }

    @Override
    @SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        result = result * PRIME + this.getColor();
        result = result * PRIME + this.getVaccineStatus();
        final Object $card = this.getCard();
        result = result * PRIME + ($card == null ? 43 : $card.hashCode());
        final Object $ext = this.getExt();
        result = result * PRIME + ($ext == null ? 43 : $ext.hashCode());
        final Object $qrCodeImg = this.getQrCodeImg();
        result = result * PRIME + ($qrCodeImg == null ? 43 : $qrCodeImg.hashCode());
        final Object $qrCodeText = this.getQrCodeText();
        result = result * PRIME + ($qrCodeText == null ? 43 : $qrCodeText.hashCode());
        return result;
    }
    //</editor-fold>
}
